{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "        <script type=\"text/javascript\">\n",
       "        window.PlotlyConfig = {MathJaxConfig: 'local'};\n",
       "        if (window.MathJax) {MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n",
       "        if (typeof require !== 'undefined') {\n",
       "        require.undef(\"plotly\");\n",
       "        requirejs.config({\n",
       "            paths: {\n",
       "                'plotly': ['https://cdn.plot.ly/plotly-latest.min']\n",
       "            }\n",
       "        });\n",
       "        require(['plotly'], function(Plotly) {\n",
       "            window._Plotly = Plotly;\n",
       "        });\n",
       "        }\n",
       "        </script>\n",
       "        "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import plotly as pl\n",
    "import plotly.graph_objs as go\n",
    "pl.offline.init_notebook_mode(connected=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "import rock as r\n",
    "from phases import *\n",
    "import fluid as f\n",
    "import insulation as i\n",
    "import pipe as p\n",
    "import well as w\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "rock = r.Rock(temperature_formation_initial=350)\n",
    "\n",
    "gas = gas.Gas(pressure_pseudocritical=46,\n",
    "              temperature_pseudocritical=190.5,\n",
    "              density_relative=0.56)\n",
    "\n",
    "water = water.Water(salinity=0.001)\n",
    "\n",
    "fluid = f.Fluid(gas=gas,\n",
    "                water=water,\n",
    "                rate_gas_standard=1000,\n",
    "                rate_water_standard=10)\n",
    "\n",
    "cementing = i.Insulation(diameter=0.25,\n",
    "                         thermal_conductivity=0.7)\n",
    "\n",
    "pipe_casing = p.Pipe(length=1000,\n",
    "                     diameter_outer=0.2,\n",
    "                     diameter_inner=0.15,\n",
    "                     roughness_absolute=None,\n",
    "                     angle_horizontal=90,\n",
    "                     thermal_conductivity=0.7,\n",
    "                     insulation=cementing)\n",
    "\n",
    "pipe_production = p.Pipe(length=1000,\n",
    "                         diameter_outer=0.125,\n",
    "                         diameter_inner=0.10,\n",
    "                         roughness_absolute=1e-5,\n",
    "                         angle_horizontal=90,\n",
    "                         thermal_conductivity=0.7,\n",
    "                         insulation=None)\n",
    "\n",
    "well = w.Well(pipe_casing=pipe_casing,\n",
    "              pipe_production=pipe_production,\n",
    "              rock=rock,\n",
    "              fluid=fluid,\n",
    "              time_work=31,\n",
    "              pressure_wellhead=100)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "marker": {
          "size": 5
         },
         "mode": "markers",
         "name": "pressure_average",
         "type": "scattergl",
         "x": [
          100,
          100.01841782550002,
          100.03682012207405,
          100.05520693749267,
          100.07357832008219,
          100.09193431874,
          100.11027498295002,
          100.1286003628068,
          100.14691050902655,
          100.16520547297135,
          100.18348530666879,
          100.20175006283192,
          100.21999979487896,
          100.23823455695306,
          100.25645440395085,
          100.2746593915379,
          100.29284957617939,
          100.31102501515778,
          100.3291857666013,
          100.34733188950823,
          100.36546344377535,
          100.3835804902244,
          100.40168309062618,
          100.41977130773572,
          100.43784520531653,
          100.45590484817575,
          100.47395030218817,
          100.49198163433817,
          100.50999891274603,
          100.52800220670521,
          100.54599158671765,
          100.56396712452658,
          100.58192889315843,
          100.59987696696004,
          100.61781142163615,
          100.63573233429321,
          100.65363978348128,
          100.67153384923344,
          100.68941461311648,
          100.70728215827032,
          100.72513656946086,
          100.74297793312384,
          100.76080633741982,
          100.77862187228251,
          100.79642462947156,
          100.81421470263183,
          100.83199218734609,
          100.84975718119446,
          100.86750978381372,
          100.8852500969566,
          100.90297822456205,
          100.92069427281469,
          100.93839835021501,
          100.9560905676498,
          100.97377103846019,
          100.99143987851858,
          101.00909720630554,
          101.02674314298679,
          101.04437781249437,
          101.06200134160581,
          101.07961386004092,
          101.09721550053638,
          101.1148063989512,
          101.13238669434809,
          101.14995652909889,
          101.16751604898133,
          101.18506540328437,
          101.20260474490942,
          101.22013423048672,
          101.23765402048302,
          101.25516427932025,
          101.27266517549637,
          101.29015688171064,
          101.30763957498438,
          101.32511343680397,
          101.34257865324592,
          101.36003541512419,
          101.37748391813521,
          101.39492436300068,
          101.41235695562578,
          101.42978190726178,
          101.44719943466427,
          101.46460976026226,
          101.48201311233632,
          101.49940972519863,
          101.51679983937535,
          101.53418370180007,
          101.55156156601376,
          101.56893369236238,
          101.58630034821682,
          101.60366180818366,
          101.62101835433164,
          101.63837027642222,
          101.6557178721514,
          101.67306144739135,
          101.69040131644758,
          101.70773780232244,
          101.72507123698338,
          101.74240196164408,
          101.75973032705014
         ],
         "xaxis": "x",
         "y": [
          1000,
          990,
          980,
          970,
          960,
          950,
          940,
          930,
          920,
          910,
          900,
          890,
          880,
          870,
          860,
          850,
          840,
          830,
          820,
          810,
          800,
          790,
          780,
          770,
          760,
          750,
          740,
          730,
          720,
          710,
          700,
          690,
          680,
          670,
          660,
          650,
          640,
          630,
          620,
          610,
          600,
          590,
          580,
          570,
          560,
          550,
          540,
          530,
          520,
          510,
          500,
          490,
          480,
          470,
          460,
          450,
          440,
          430,
          420,
          410,
          400,
          390,
          380,
          370,
          360,
          350,
          340,
          330,
          320,
          310,
          300,
          290,
          280,
          270,
          260,
          250,
          240,
          230,
          220,
          210,
          200,
          190,
          180,
          170,
          160,
          150,
          140,
          130,
          120,
          110,
          100,
          90,
          80,
          70,
          60,
          50,
          40,
          30,
          20,
          10
         ]
        },
        {
         "marker": {
          "size": 5
         },
         "mode": "markers",
         "name": "temperature_hasan_kabir",
         "type": "scattergl",
         "x": [
          329.1827074527268,
          329.4597573266443,
          329.7364222802844,
          330.0126894731923,
          330.28854569248483,
          330.56397734157946,
          330.83897043248754,
          331.11351057041986,
          331.3875829442705,
          331.66117231262297,
          331.9342629891271,
          332.20683883827724,
          332.47888324441664,
          332.7503791173022,
          333.02130886230253,
          333.29165437631553,
          333.5613970251884,
          333.83051762994904,
          334.09899645363095,
          334.3668131786664,
          334.63394689772514,
          334.90037608666955,
          335.16607859322187,
          335.43103161626806,
          335.6952116839624,
          335.9585946381667,
          336.22115560885123,
          336.4828689989488,
          336.7437084583906,
          337.0036468615788,
          337.2626562862642,
          337.5207079907875,
          337.7777723847997,
          338.03381900904657,
          338.2888165101077,
          338.5427326077114,
          338.7955340740092,
          339.0471867007689,
          339.2976552743454,
          339.546903542247,
          339.79489418448327,
          340.0415887820856,
          340.2869477834253,
          340.53093047204493,
          340.77349493251063,
          341.01459801273063,
          341.2541952905889,
          341.4922410351504,
          341.7286881691266,
          341.9634882268293,
          342.19659131739695,
          342.4279460801879,
          342.6574996421264,
          342.8851975765893,
          343.11098385297214,
          343.33480079287,
          343.55658902410715,
          343.7762874277931,
          343.9938330910145,
          344.2091612510036,
          344.4222052464052,
          344.6328964581219,
          344.84116425576997,
          345.04693593935554,
          345.25013668060313,
          345.4506894590122,
          345.64851500242145,
          345.843531722427,
          346.03565564720554,
          346.2248003549836,
          346.4108769051053,
          346.59379376467353,
          346.77345674088986,
          346.9497689004236,
          347.12263049622385,
          347.2919388896354,
          347.45758846918324,
          347.61947056834447,
          347.77747338206785,
          347.9314818813856,
          348.081377724766,
          348.22703916892095,
          348.36834097700745,
          348.5051543255945,
          348.6373467082,
          348.76478183911416,
          348.8873195537284,
          349.00481570734013,
          349.1171220730415,
          349.2240862369068,
          349.32555149210305,
          349.42135673135317,
          349.51133633781114,
          349.59532007505055,
          349.67313297533286,
          349.74459522731746,
          349.80952206275066,
          349.86772364268114,
          349.9190049431484,
          349.96316564103654
         ],
         "xaxis": "x2",
         "y": [
          1000,
          990,
          980,
          970,
          960,
          950,
          940,
          930,
          920,
          910,
          900,
          890,
          880,
          870,
          860,
          850,
          840,
          830,
          820,
          810,
          800,
          790,
          780,
          770,
          760,
          750,
          740,
          730,
          720,
          710,
          700,
          690,
          680,
          670,
          660,
          650,
          640,
          630,
          620,
          610,
          600,
          590,
          580,
          570,
          560,
          550,
          540,
          530,
          520,
          510,
          500,
          490,
          480,
          470,
          460,
          450,
          440,
          430,
          420,
          410,
          400,
          390,
          380,
          370,
          360,
          350,
          340,
          330,
          320,
          310,
          300,
          290,
          280,
          270,
          260,
          250,
          240,
          230,
          220,
          210,
          200,
          190,
          180,
          170,
          160,
          150,
          140,
          130,
          120,
          110,
          100,
          90,
          80,
          70,
          60,
          50,
          40,
          30,
          20,
          10
         ]
        },
        {
         "marker": {
          "size": 5
         },
         "mode": "markers",
         "name": "pressure_fanning",
         "type": "scattergl",
         "x": [
          100,
          100.0663964166978,
          100.13276445199865,
          100.19910422622601,
          100.26541586295991,
          100.33169948912462,
          100.39795523507867,
          100.46418323471161,
          100.53038362554265,
          100.59655654881952,
          100.66270214962603,
          100.72882057698537,
          100.79491198396968,
          100.8609765278188,
          100.9270143700478,
          100.99302567657419,
          101.05901061783888,
          101.12496936893557,
          101.19090210973593,
          101.25680902503233,
          101.3226903046695,
          101.38854614369387,
          101.4543767424941,
          101.52018230695914,
          101.58596304862964,
          101.65171918486047,
          101.71745093898754,
          101.78315854049475,
          101.84884222519169,
          101.91450223539583,
          101.98013882011709,
          102.04575223524871,
          102.11134274376484,
          102.17691061592909,
          102.24245612949657,
          102.30797956993555,
          102.37348123064477,
          102.43896141318842,
          102.5044204275287,
          102.56985859226745,
          102.63527623490067,
          102.70067369207328,
          102.766051309849,
          102.83140944398048,
          102.89674846019236,
          102.96206873447335,
          103.02737065337689,
          103.09265461432847,
          103.15792102594833,
          103.22317030837199,
          103.28840289359482,
          103.35361922581883,
          103.41881976181277,
          103.48400497128524,
          103.54917533726007,
          103.61433135647792,
          103.67947353979588,
          103.74460241261332,
          103.80971851529762,
          103.87482240363201,
          103.93991464927652,
          104.00499584023547,
          104.0700665813558,
          104.13512749482308,
          104.20017922068172,
          104.2652224173749,
          104.3302577622955,
          104.39528595235906,
          104.46030770458529,
          104.52532375671493,
          104.59033486782863,
          104.65534181899663,
          104.7203454139505,
          104.78534647976338,
          104.85034586756778,
          104.91534445328428,
          104.98034313838077,
          105.04534285065841,
          105.11034454505031,
          105.17534920445789,
          105.24035784061552,
          105.30537149497057,
          105.37039123960753,
          105.43541817818723,
          105.5004534469323,
          105.56549821562787,
          105.6305536886685,
          105.69562110613575,
          105.76070174490636,
          105.8257969198024,
          105.89090798477186,
          105.95603633411541,
          106.02118340375276,
          106.08635067252389,
          106.15153966353883,
          106.21675194556894,
          106.2819891344821,
          106.34725289472618,
          106.41254494086303,
          106.4778670391484
         ],
         "xaxis": "x",
         "y": [
          1000,
          990,
          980,
          970,
          960,
          950,
          940,
          930,
          920,
          910,
          900,
          890,
          880,
          870,
          860,
          850,
          840,
          830,
          820,
          810,
          800,
          790,
          780,
          770,
          760,
          750,
          740,
          730,
          720,
          710,
          700,
          690,
          680,
          670,
          660,
          650,
          640,
          630,
          620,
          610,
          600,
          590,
          580,
          570,
          560,
          550,
          540,
          530,
          520,
          510,
          500,
          490,
          480,
          470,
          460,
          450,
          440,
          430,
          420,
          410,
          400,
          390,
          380,
          370,
          360,
          350,
          340,
          330,
          320,
          310,
          300,
          290,
          280,
          270,
          260,
          250,
          240,
          230,
          220,
          210,
          200,
          190,
          180,
          170,
          160,
          150,
          140,
          130,
          120,
          110,
          100,
          90,
          80,
          70,
          60,
          50,
          40,
          30,
          20,
          10
         ]
        },
        {
         "marker": {
          "size": 5
         },
         "mode": "markers",
         "name": "temperature_hasan_kabir",
         "type": "scattergl",
         "x": [
          329.1827074527268,
          329.4610345711799,
          329.73895181200623,
          330.01644620731224,
          330.29350441738086,
          330.57011271810535,
          330.8462569874841,
          331.12192269608477,
          331.3970948956895,
          331.67175820437404,
          331.945896795098,
          332.2194943850329,
          332.4925342181488,
          332.7649990497301,
          333.0368711406975,
          333.3081322344184,
          333.57876354543606,
          333.8487457425034,
          334.1180589323816,
          334.38668264558646,
          334.65459581571395,
          334.9217767669268,
          335.18820318797134,
          335.45385212489555,
          335.71869995163166,
          335.9827223562969,
          336.2458943169952,
          336.5081900866711,
          336.76958316623245,
          337.03004628485604,
          337.2895513774842,
          337.5480695613976,
          337.80557111417835,
          338.0620254429002,
          338.3174010677679,
          338.57166558740556,
          338.8247856584512,
          339.0767269662771,
          339.3274541936315,
          339.5769309960181,
          339.8251199695483,
          340.07198261988634,
          340.31747932947553,
          340.5615693294709,
          340.80421066286436,
          341.04536014946086,
          341.28497335089884,
          341.5230045392418,
          341.7594066520128,
          341.9941312595031,
          342.227128521549,
          342.4583471504534,
          342.6877343679467,
          342.9152358615768,
          343.14079574271835,
          343.3643565001672,
          343.58585895445896,
          343.80524221039906,
          344.02244360741275,
          344.23739867199305,
          344.45004106428473,
          344.6603025245857,
          344.868112822948,
          345.0733997002315,
          345.2760888128,
          345.4761036756758,
          345.6733655987014,
          345.8677936306045,
          346.05930449220926,
          346.2478125153961,
          346.4332295738608,
          346.6154650196331,
          346.7944256115818,
          346.9700154458599,
          347.1421358843451,
          347.3106854799386,
          347.47555990212567,
          347.63665186020154,
          347.79385102411914,
          347.9470439452465,
          348.0961139736942,
          348.24094117679317,
          348.381402252572,
          348.5173704446009,
          348.64871545345795,
          348.77530334847677,
          348.8969964768859,
          349.0136533714766,
          349.12512865853375,
          349.2312729628674,
          349.3319328129489,
          349.4269505453544,
          349.51616420721996,
          349.5994074595082,
          349.6765094790709,
          349.7472948607161,
          349.81158351959783,
          349.86919059354847,
          349.9199263464031,
          349.9635960720529
         ],
         "xaxis": "x2",
         "y": [
          1000,
          990,
          980,
          970,
          960,
          950,
          940,
          930,
          920,
          910,
          900,
          890,
          880,
          870,
          860,
          850,
          840,
          830,
          820,
          810,
          800,
          790,
          780,
          770,
          760,
          750,
          740,
          730,
          720,
          710,
          700,
          690,
          680,
          670,
          660,
          650,
          640,
          630,
          620,
          610,
          600,
          590,
          580,
          570,
          560,
          550,
          540,
          530,
          520,
          510,
          500,
          490,
          480,
          470,
          460,
          450,
          440,
          430,
          420,
          410,
          400,
          390,
          380,
          370,
          360,
          350,
          340,
          330,
          320,
          310,
          300,
          290,
          280,
          270,
          260,
          250,
          240,
          230,
          220,
          210,
          200,
          190,
          180,
          170,
          160,
          150,
          140,
          130,
          120,
          110,
          100,
          90,
          80,
          70,
          60,
          50,
          40,
          30,
          20,
          10
         ]
        }
       ],
       "layout": {
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "heatmapgl": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmapgl"
           }
          ],
          "histogram": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "scatter": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "side": "bottom",
         "title": {
          "text": "pressure, barsa"
         }
        },
        "xaxis2": {
         "overlaying": "x",
         "side": "top",
         "title": {
          "text": "temperature, K"
         }
        },
        "yaxis": {
         "title": {
          "text": "inverse depth, m"
         }
        }
       }
      },
      "text/html": [
       "<div>\n",
       "        \n",
       "        \n",
       "            <div id=\"d75c8679-f605-4633-ae3f-e1175176b8ec\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div>\n",
       "            <script type=\"text/javascript\">\n",
       "                require([\"plotly\"], function(Plotly) {\n",
       "                    window.PLOTLYENV=window.PLOTLYENV || {};\n",
       "                    \n",
       "                if (document.getElementById(\"d75c8679-f605-4633-ae3f-e1175176b8ec\")) {\n",
       "                    Plotly.newPlot(\n",
       "                        'd75c8679-f605-4633-ae3f-e1175176b8ec',\n",
       "                        [{\"marker\": {\"size\": 5}, \"mode\": \"markers\", \"name\": \"pressure_average\", \"type\": \"scattergl\", \"x\": [100, 100.01841782550002, 100.03682012207405, 100.05520693749267, 100.07357832008219, 100.09193431874, 100.11027498295002, 100.1286003628068, 100.14691050902655, 100.16520547297135, 100.18348530666879, 100.20175006283192, 100.21999979487896, 100.23823455695306, 100.25645440395085, 100.2746593915379, 100.29284957617939, 100.31102501515778, 100.3291857666013, 100.34733188950823, 100.36546344377535, 100.3835804902244, 100.40168309062618, 100.41977130773572, 100.43784520531653, 100.45590484817575, 100.47395030218817, 100.49198163433817, 100.50999891274603, 100.52800220670521, 100.54599158671765, 100.56396712452658, 100.58192889315843, 100.59987696696004, 100.61781142163615, 100.63573233429321, 100.65363978348128, 100.67153384923344, 100.68941461311648, 100.70728215827032, 100.72513656946086, 100.74297793312384, 100.76080633741982, 100.77862187228251, 100.79642462947156, 100.81421470263183, 100.83199218734609, 100.84975718119446, 100.86750978381372, 100.8852500969566, 100.90297822456205, 100.92069427281469, 100.93839835021501, 100.9560905676498, 100.97377103846019, 100.99143987851858, 101.00909720630554, 101.02674314298679, 101.04437781249437, 101.06200134160581, 101.07961386004092, 101.09721550053638, 101.1148063989512, 101.13238669434809, 101.14995652909889, 101.16751604898133, 101.18506540328437, 101.20260474490942, 101.22013423048672, 101.23765402048302, 101.25516427932025, 101.27266517549637, 101.29015688171064, 101.30763957498438, 101.32511343680397, 101.34257865324592, 101.36003541512419, 101.37748391813521, 101.39492436300068, 101.41235695562578, 101.42978190726178, 101.44719943466427, 101.46460976026226, 101.48201311233632, 101.49940972519863, 101.51679983937535, 101.53418370180007, 101.55156156601376, 101.56893369236238, 101.58630034821682, 101.60366180818366, 101.62101835433164, 101.63837027642222, 101.6557178721514, 101.67306144739135, 101.69040131644758, 101.70773780232244, 101.72507123698338, 101.74240196164408, 101.75973032705014], \"xaxis\": \"x\", \"y\": [1000, 990, 980, 970, 960, 950, 940, 930, 920, 910, 900, 890, 880, 870, 860, 850, 840, 830, 820, 810, 800, 790, 780, 770, 760, 750, 740, 730, 720, 710, 700, 690, 680, 670, 660, 650, 640, 630, 620, 610, 600, 590, 580, 570, 560, 550, 540, 530, 520, 510, 500, 490, 480, 470, 460, 450, 440, 430, 420, 410, 400, 390, 380, 370, 360, 350, 340, 330, 320, 310, 300, 290, 280, 270, 260, 250, 240, 230, 220, 210, 200, 190, 180, 170, 160, 150, 140, 130, 120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10]}, {\"marker\": {\"size\": 5}, \"mode\": \"markers\", \"name\": \"temperature_hasan_kabir\", \"type\": \"scattergl\", \"x\": [329.1827074527268, 329.4597573266443, 329.7364222802844, 330.0126894731923, 330.28854569248483, 330.56397734157946, 330.83897043248754, 331.11351057041986, 331.3875829442705, 331.66117231262297, 331.9342629891271, 332.20683883827724, 332.47888324441664, 332.7503791173022, 333.02130886230253, 333.29165437631553, 333.5613970251884, 333.83051762994904, 334.09899645363095, 334.3668131786664, 334.63394689772514, 334.90037608666955, 335.16607859322187, 335.43103161626806, 335.6952116839624, 335.9585946381667, 336.22115560885123, 336.4828689989488, 336.7437084583906, 337.0036468615788, 337.2626562862642, 337.5207079907875, 337.7777723847997, 338.03381900904657, 338.2888165101077, 338.5427326077114, 338.7955340740092, 339.0471867007689, 339.2976552743454, 339.546903542247, 339.79489418448327, 340.0415887820856, 340.2869477834253, 340.53093047204493, 340.77349493251063, 341.01459801273063, 341.2541952905889, 341.4922410351504, 341.7286881691266, 341.9634882268293, 342.19659131739695, 342.4279460801879, 342.6574996421264, 342.8851975765893, 343.11098385297214, 343.33480079287, 343.55658902410715, 343.7762874277931, 343.9938330910145, 344.2091612510036, 344.4222052464052, 344.6328964581219, 344.84116425576997, 345.04693593935554, 345.25013668060313, 345.4506894590122, 345.64851500242145, 345.843531722427, 346.03565564720554, 346.2248003549836, 346.4108769051053, 346.59379376467353, 346.77345674088986, 346.9497689004236, 347.12263049622385, 347.2919388896354, 347.45758846918324, 347.61947056834447, 347.77747338206785, 347.9314818813856, 348.081377724766, 348.22703916892095, 348.36834097700745, 348.5051543255945, 348.6373467082, 348.76478183911416, 348.8873195537284, 349.00481570734013, 349.1171220730415, 349.2240862369068, 349.32555149210305, 349.42135673135317, 349.51133633781114, 349.59532007505055, 349.67313297533286, 349.74459522731746, 349.80952206275066, 349.86772364268114, 349.9190049431484, 349.96316564103654], \"xaxis\": \"x2\", \"y\": [1000, 990, 980, 970, 960, 950, 940, 930, 920, 910, 900, 890, 880, 870, 860, 850, 840, 830, 820, 810, 800, 790, 780, 770, 760, 750, 740, 730, 720, 710, 700, 690, 680, 670, 660, 650, 640, 630, 620, 610, 600, 590, 580, 570, 560, 550, 540, 530, 520, 510, 500, 490, 480, 470, 460, 450, 440, 430, 420, 410, 400, 390, 380, 370, 360, 350, 340, 330, 320, 310, 300, 290, 280, 270, 260, 250, 240, 230, 220, 210, 200, 190, 180, 170, 160, 150, 140, 130, 120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10]}, {\"marker\": {\"size\": 5}, \"mode\": \"markers\", \"name\": \"pressure_fanning\", \"type\": \"scattergl\", \"x\": [100, 100.0663964166978, 100.13276445199865, 100.19910422622601, 100.26541586295991, 100.33169948912462, 100.39795523507867, 100.46418323471161, 100.53038362554265, 100.59655654881952, 100.66270214962603, 100.72882057698537, 100.79491198396968, 100.8609765278188, 100.9270143700478, 100.99302567657419, 101.05901061783888, 101.12496936893557, 101.19090210973593, 101.25680902503233, 101.3226903046695, 101.38854614369387, 101.4543767424941, 101.52018230695914, 101.58596304862964, 101.65171918486047, 101.71745093898754, 101.78315854049475, 101.84884222519169, 101.91450223539583, 101.98013882011709, 102.04575223524871, 102.11134274376484, 102.17691061592909, 102.24245612949657, 102.30797956993555, 102.37348123064477, 102.43896141318842, 102.5044204275287, 102.56985859226745, 102.63527623490067, 102.70067369207328, 102.766051309849, 102.83140944398048, 102.89674846019236, 102.96206873447335, 103.02737065337689, 103.09265461432847, 103.15792102594833, 103.22317030837199, 103.28840289359482, 103.35361922581883, 103.41881976181277, 103.48400497128524, 103.54917533726007, 103.61433135647792, 103.67947353979588, 103.74460241261332, 103.80971851529762, 103.87482240363201, 103.93991464927652, 104.00499584023547, 104.0700665813558, 104.13512749482308, 104.20017922068172, 104.2652224173749, 104.3302577622955, 104.39528595235906, 104.46030770458529, 104.52532375671493, 104.59033486782863, 104.65534181899663, 104.7203454139505, 104.78534647976338, 104.85034586756778, 104.91534445328428, 104.98034313838077, 105.04534285065841, 105.11034454505031, 105.17534920445789, 105.24035784061552, 105.30537149497057, 105.37039123960753, 105.43541817818723, 105.5004534469323, 105.56549821562787, 105.6305536886685, 105.69562110613575, 105.76070174490636, 105.8257969198024, 105.89090798477186, 105.95603633411541, 106.02118340375276, 106.08635067252389, 106.15153966353883, 106.21675194556894, 106.2819891344821, 106.34725289472618, 106.41254494086303, 106.4778670391484], \"xaxis\": \"x\", \"y\": [1000, 990, 980, 970, 960, 950, 940, 930, 920, 910, 900, 890, 880, 870, 860, 850, 840, 830, 820, 810, 800, 790, 780, 770, 760, 750, 740, 730, 720, 710, 700, 690, 680, 670, 660, 650, 640, 630, 620, 610, 600, 590, 580, 570, 560, 550, 540, 530, 520, 510, 500, 490, 480, 470, 460, 450, 440, 430, 420, 410, 400, 390, 380, 370, 360, 350, 340, 330, 320, 310, 300, 290, 280, 270, 260, 250, 240, 230, 220, 210, 200, 190, 180, 170, 160, 150, 140, 130, 120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10]}, {\"marker\": {\"size\": 5}, \"mode\": \"markers\", \"name\": \"temperature_hasan_kabir\", \"type\": \"scattergl\", \"x\": [329.1827074527268, 329.4610345711799, 329.73895181200623, 330.01644620731224, 330.29350441738086, 330.57011271810535, 330.8462569874841, 331.12192269608477, 331.3970948956895, 331.67175820437404, 331.945896795098, 332.2194943850329, 332.4925342181488, 332.7649990497301, 333.0368711406975, 333.3081322344184, 333.57876354543606, 333.8487457425034, 334.1180589323816, 334.38668264558646, 334.65459581571395, 334.9217767669268, 335.18820318797134, 335.45385212489555, 335.71869995163166, 335.9827223562969, 336.2458943169952, 336.5081900866711, 336.76958316623245, 337.03004628485604, 337.2895513774842, 337.5480695613976, 337.80557111417835, 338.0620254429002, 338.3174010677679, 338.57166558740556, 338.8247856584512, 339.0767269662771, 339.3274541936315, 339.5769309960181, 339.8251199695483, 340.07198261988634, 340.31747932947553, 340.5615693294709, 340.80421066286436, 341.04536014946086, 341.28497335089884, 341.5230045392418, 341.7594066520128, 341.9941312595031, 342.227128521549, 342.4583471504534, 342.6877343679467, 342.9152358615768, 343.14079574271835, 343.3643565001672, 343.58585895445896, 343.80524221039906, 344.02244360741275, 344.23739867199305, 344.45004106428473, 344.6603025245857, 344.868112822948, 345.0733997002315, 345.2760888128, 345.4761036756758, 345.6733655987014, 345.8677936306045, 346.05930449220926, 346.2478125153961, 346.4332295738608, 346.6154650196331, 346.7944256115818, 346.9700154458599, 347.1421358843451, 347.3106854799386, 347.47555990212567, 347.63665186020154, 347.79385102411914, 347.9470439452465, 348.0961139736942, 348.24094117679317, 348.381402252572, 348.5173704446009, 348.64871545345795, 348.77530334847677, 348.8969964768859, 349.0136533714766, 349.12512865853375, 349.2312729628674, 349.3319328129489, 349.4269505453544, 349.51616420721996, 349.5994074595082, 349.6765094790709, 349.7472948607161, 349.81158351959783, 349.86919059354847, 349.9199263464031, 349.9635960720529], \"xaxis\": \"x2\", \"y\": [1000, 990, 980, 970, 960, 950, 940, 930, 920, 910, 900, 890, 880, 870, 860, 850, 840, 830, 820, 810, 800, 790, 780, 770, 760, 750, 740, 730, 720, 710, 700, 690, 680, 670, 660, 650, 640, 630, 620, 610, 600, 590, 580, 570, 560, 550, 540, 530, 520, 510, 500, 490, 480, 470, 460, 450, 440, 430, 420, 410, 400, 390, 380, 370, 360, 350, 340, 330, 320, 310, 300, 290, 280, 270, 260, 250, 240, 230, 220, 210, 200, 190, 180, 170, 160, 150, 140, 130, 120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10]}],\n",
       "                        {\"template\": {\"data\": {\"bar\": [{\"error_x\": {\"color\": \"#2a3f5f\"}, \"error_y\": {\"color\": \"#2a3f5f\"}, \"marker\": {\"line\": {\"color\": \"#E5ECF6\", \"width\": 0.5}}, \"type\": \"bar\"}], \"barpolar\": [{\"marker\": {\"line\": {\"color\": \"#E5ECF6\", \"width\": 0.5}}, \"type\": \"barpolar\"}], \"carpet\": [{\"aaxis\": {\"endlinecolor\": \"#2a3f5f\", \"gridcolor\": \"white\", \"linecolor\": \"white\", \"minorgridcolor\": \"white\", \"startlinecolor\": \"#2a3f5f\"}, \"baxis\": {\"endlinecolor\": \"#2a3f5f\", \"gridcolor\": \"white\", \"linecolor\": \"white\", \"minorgridcolor\": \"white\", \"startlinecolor\": \"#2a3f5f\"}, \"type\": \"carpet\"}], \"choropleth\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"type\": \"choropleth\"}], \"contour\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"contour\"}], \"contourcarpet\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"type\": \"contourcarpet\"}], \"heatmap\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"heatmap\"}], \"heatmapgl\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"heatmapgl\"}], \"histogram\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"histogram\"}], \"histogram2d\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"histogram2d\"}], \"histogram2dcontour\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"histogram2dcontour\"}], \"mesh3d\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"type\": \"mesh3d\"}], \"parcoords\": [{\"line\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"parcoords\"}], \"scatter\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scatter\"}], \"scatter3d\": [{\"line\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scatter3d\"}], \"scattercarpet\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scattercarpet\"}], \"scattergeo\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scattergeo\"}], \"scattergl\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scattergl\"}], \"scattermapbox\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scattermapbox\"}], \"scatterpolar\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scatterpolar\"}], \"scatterpolargl\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scatterpolargl\"}], \"scatterternary\": [{\"marker\": {\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}}, \"type\": \"scatterternary\"}], \"surface\": [{\"colorbar\": {\"outlinewidth\": 0, \"ticks\": \"\"}, \"colorscale\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"type\": \"surface\"}], \"table\": [{\"cells\": {\"fill\": {\"color\": \"#EBF0F8\"}, \"line\": {\"color\": \"white\"}}, \"header\": {\"fill\": {\"color\": \"#C8D4E3\"}, \"line\": {\"color\": \"white\"}}, \"type\": \"table\"}]}, \"layout\": {\"annotationdefaults\": {\"arrowcolor\": \"#2a3f5f\", \"arrowhead\": 0, \"arrowwidth\": 1}, \"colorscale\": {\"diverging\": [[0, \"#8e0152\"], [0.1, \"#c51b7d\"], [0.2, \"#de77ae\"], [0.3, \"#f1b6da\"], [0.4, \"#fde0ef\"], [0.5, \"#f7f7f7\"], [0.6, \"#e6f5d0\"], [0.7, \"#b8e186\"], [0.8, \"#7fbc41\"], [0.9, \"#4d9221\"], [1, \"#276419\"]], \"sequential\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]], \"sequentialminus\": [[0.0, \"#0d0887\"], [0.1111111111111111, \"#46039f\"], [0.2222222222222222, \"#7201a8\"], [0.3333333333333333, \"#9c179e\"], [0.4444444444444444, \"#bd3786\"], [0.5555555555555556, \"#d8576b\"], [0.6666666666666666, \"#ed7953\"], [0.7777777777777778, \"#fb9f3a\"], [0.8888888888888888, \"#fdca26\"], [1.0, \"#f0f921\"]]}, \"colorway\": [\"#636efa\", \"#EF553B\", \"#00cc96\", \"#ab63fa\", \"#FFA15A\", \"#19d3f3\", \"#FF6692\", \"#B6E880\", \"#FF97FF\", \"#FECB52\"], \"font\": {\"color\": \"#2a3f5f\"}, \"geo\": {\"bgcolor\": \"white\", \"lakecolor\": \"white\", \"landcolor\": \"#E5ECF6\", \"showlakes\": true, \"showland\": true, \"subunitcolor\": \"white\"}, \"hoverlabel\": {\"align\": \"left\"}, \"hovermode\": \"closest\", \"mapbox\": {\"style\": \"light\"}, \"paper_bgcolor\": \"white\", \"plot_bgcolor\": \"#E5ECF6\", \"polar\": {\"angularaxis\": {\"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\"}, \"bgcolor\": \"#E5ECF6\", \"radialaxis\": {\"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\"}}, \"scene\": {\"xaxis\": {\"backgroundcolor\": \"#E5ECF6\", \"gridcolor\": \"white\", \"gridwidth\": 2, \"linecolor\": \"white\", \"showbackground\": true, \"ticks\": \"\", \"zerolinecolor\": \"white\"}, \"yaxis\": {\"backgroundcolor\": \"#E5ECF6\", \"gridcolor\": \"white\", \"gridwidth\": 2, \"linecolor\": \"white\", \"showbackground\": true, \"ticks\": \"\", \"zerolinecolor\": \"white\"}, \"zaxis\": {\"backgroundcolor\": \"#E5ECF6\", \"gridcolor\": \"white\", \"gridwidth\": 2, \"linecolor\": \"white\", \"showbackground\": true, \"ticks\": \"\", \"zerolinecolor\": \"white\"}}, \"shapedefaults\": {\"line\": {\"color\": \"#2a3f5f\"}}, \"ternary\": {\"aaxis\": {\"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\"}, \"baxis\": {\"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\"}, \"bgcolor\": \"#E5ECF6\", \"caxis\": {\"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\"}}, \"title\": {\"x\": 0.05}, \"xaxis\": {\"automargin\": true, \"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\", \"zerolinecolor\": \"white\", \"zerolinewidth\": 2}, \"yaxis\": {\"automargin\": true, \"gridcolor\": \"white\", \"linecolor\": \"white\", \"ticks\": \"\", \"zerolinecolor\": \"white\", \"zerolinewidth\": 2}}}, \"xaxis\": {\"side\": \"bottom\", \"title\": {\"text\": \"pressure, barsa\"}}, \"xaxis2\": {\"overlaying\": \"x\", \"side\": \"top\", \"title\": {\"text\": \"temperature, K\"}}, \"yaxis\": {\"title\": {\"text\": \"inverse depth, m\"}}},\n",
       "                        {\"responsive\": true}\n",
       "                    ).then(function(){\n",
       "                            \n",
       "var gd = document.getElementById('d75c8679-f605-4633-ae3f-e1175176b8ec');\n",
       "var x = new MutationObserver(function (mutations, observer) {{\n",
       "        var display = window.getComputedStyle(gd).display;\n",
       "        if (!display || display === 'none') {{\n",
       "            console.log([gd, 'removed!']);\n",
       "            Plotly.purge(gd);\n",
       "            observer.disconnect();\n",
       "        }}\n",
       "}});\n",
       "\n",
       "// Listen for the removal of the full notebook cells\n",
       "var notebookContainer = gd.closest('#notebook-container');\n",
       "if (notebookContainer) {{\n",
       "    x.observe(notebookContainer, {childList: true});\n",
       "}}\n",
       "\n",
       "// Listen for the clearing of the current output cell\n",
       "var outputEl = gd.closest('.output');\n",
       "if (outputEl) {{\n",
       "    x.observe(outputEl, {childList: true});\n",
       "}}\n",
       "\n",
       "                        })\n",
       "                };\n",
       "                });\n",
       "            </script>\n",
       "        </div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = go.Figure()\n",
    "\n",
    "profile = well.compute_pressure_profile(method_pressure='average', method_temperature='hasan_kabir')\n",
    "\n",
    "trace1 = go.Scattergl(x = profile['pressure'],\n",
    "                      y = profile['coordinate'], \n",
    "                      mode = 'markers',\n",
    "                      marker = dict(size = 5),\n",
    "                      name = 'pressure_average',\n",
    "                      xaxis = 'x1')\n",
    "\n",
    "trace2 = go.Scattergl(x = profile['temperature'],\n",
    "                      y = profile['coordinate'], \n",
    "                      mode = 'markers',\n",
    "                      marker = dict(size = 5),\n",
    "                      name = 'temperature_hasan_kabir',\n",
    "                      xaxis = 'x2')\n",
    "\n",
    "profile = well.compute_pressure_profile(method_pressure='gray', method_temperature='hasan_kabir')\n",
    "\n",
    "trace3 = go.Scattergl(x = profile['pressure'],\n",
    "                      y = profile['coordinate'], \n",
    "                      mode = 'markers',\n",
    "                      marker = dict(size = 5),\n",
    "                      name = 'pressure_fanning',\n",
    "                      xaxis = 'x1')\n",
    "\n",
    "trace4 = go.Scattergl(x = profile['temperature'],\n",
    "                      y = profile['coordinate'], \n",
    "                      mode = 'markers',\n",
    "                      marker = dict(size = 5),\n",
    "                      name = 'temperature_hasan_kabir',\n",
    "                      xaxis = 'x2')\n",
    "\n",
    "fig.add_trace(trace1)\n",
    "fig.add_trace(trace2)\n",
    "fig.add_trace(trace3)\n",
    "fig.add_trace(trace4)\n",
    "\n",
    "fig.update_layout(xaxis1 = dict(title = dict(text = 'pressure, barsa'),\n",
    "                                side = 'bottom'),\n",
    "                  xaxis2 = dict(title = dict(text = 'temperature, K'),\n",
    "                                overlaying = 'x',\n",
    "                                side = 'top'),\n",
    "                  yaxis = dict(title = dict(text = 'inverse depth, m')))\n",
    "\n",
    "fig.show()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
